<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 634563456@qq.com、ffs54353_fdf@163.com、fdgd@gamil.com、wangwei@atguigu.cn
      // hsfgs@yoo.com.cn
      var reg = /^\w+@(\w+\.)+[a-zA-Z]{2,3}$/i;
      console.log(reg.test('ffs54353_fdf@163.com'));
    </script>
  </body>
</html>
